# -*- coding: utf-8 -*-
from parse import *
from google.appengine.api import images

class Image():
    image = None

    def __init__(self, url):
        prase = Prase(None)
        str = prase.getWebContent(url)
        if str == None:
            pass
        else:
            self.image = images.Image(str)

    def getWidth(self):
        if self.image == None:
            return None
        else:
            return self.image.width

    def getHeight(self):
        if self.image == None:
            return None
        else:
            return self.image.height
